package com.powernode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.powernode.domain.LoginSysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

/**
 * 登录用户信息查询
 *
 * @author ZhangYu
 * @date 2024/12/1 13:51
 */
@Mapper
public interface LoginSysUserMapper extends BaseMapper<LoginSysUser> {

    /**
     * 根据用户标识查询用户的权限集合
     *
     * @param userId 用户id
     * @return 用户的权限集合
     */
    Set<String> selectPermsByUserId(Long userId);

}
